PHP uses simplexml to solve the illegal offset type Problem
Simplexml_load_string/simplexml_load_file of PHP is very convenient. You can easily convert XML Parse into a PHP Object, and then you can process the information as needed ~
A string is composed of a series of characters, each of which is equivalent to a byte. This means that PHP only supports the 256 character set and therefore does not support Unicode. For details, see the description of the string type. Note: string..
Document directory
I. Introduction to types
Ii. Boolean
Iii. Integer type
Iv. String
5. Array
PHP supports eight primitive types, including:
Four scalar types: Boolean, integer, float, and string );
Two composite types: array and object
What kind of network protocol does 1.nginx use?
Nginx is the application layer I think from the bottom up, the transport layer uses the TCP/IP application layer for HTTP
FastCGI is responsible for the scheduling process
2. ? echo ' Hello
PHP supports 8 types of raw data. Four scalar types: Boolean (Boolean), Integer (integer), float (floating-point, also called Double), String (string), two composite types: Array (array), object, Finally, there are two special types: resource
Note: PHP does not limit the length of string. The only limit is the available memory of PHP in the computer (the value of the Memory_limit variable in the php.ini file)
There are 4 ways to qualify string ranges:
1, single quotation mark;
2, double
In PHP, the array can hold the value can be any PHP type, if the given value does not specify the key name, then the current largest integer index value, and the new key name is the value plus one, this is the PHP array
There are three types of
In a word, the object is used as the key of the array. For example, the following code triggers this warning: The code is as follows:Copy code $ Arr = array (); Class { } $ O = new; Echo $ arr [$ o]; Specifically, I triggered this
A string of strings consists of a series of characters, each of which is equal to one byte. This means that PHP can only support a 256 character set and therefore does not support Unicode. See detailed string types.
The note:string can reach 2GB
Note: PHP does not limit the length of string. The only limit is the available memory of PHP on the computer (value of the memory_limit variable in the php. ini file)There are four methods to limit the string range:1. Single quotes;2. Double
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.